import { getCrudApi } from '@/utils/http/crud.ts'

export interface RecordDto {
  id?: string
  workerId: string
  processId: string
  description: string
  number: number
}

export interface CreateRecordDto {
  workerId: string | null
  processId: string | null
  date: Date | null
  number: number | null
  description: string
  sizeId: string | null
  styleId: string | null
}

export default {
  ...getCrudApi<RecordDto>('record'),
}
